/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SpringTAI.service;

import SpringTAI.domain.Person;
import java.util.List;

/**
 *
 * @author Krzysztof Nyznar
 */
public class SimplePersonManager implements PersonManager {

    private List<Person> persons;
    
    @Override
    public List<Person> getPersons() {
        return persons;
    }
    
    public void setPersons(List<Person> persons) {
        this.persons = persons;
    }
    
    public void addPerson(Person newPerson) {
        persons.add(newPerson);
    }
    
}
